package com.hxd.otc.module.fiat_deal.bean;

import java.io.Serializable;

/**
 * Created by lzy on 2018/12/26 0026.
 * description ${}
 */
public class FilterBankTypeBean extends BaseFilterBean<String> implements Serializable {
    private String value;


    public FilterBankTypeBean(String item, String value) {
        super(item);
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public String getText() {
        return getItem();
    }

    @Override
    public String toString() {
        return "FilterBankTypeBean{" +
                "value='" + value + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;

        FilterBankTypeBean that = (FilterBankTypeBean) o;

        return value.equals(that.value);
    }

    @Override
    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + value.hashCode();
        return result;
    }
}
